import Vue from 'vue';
import VueRouter from 'vue-router'
import Login from '../views/Login.vue'


Vue.use(VueRouter);

const router = new VueRouter({
    routes: [
        // 基础路由：不需要登录即可访问
        {
            path: '/login',
            component: Login,
        }, 
        {
            path:'/',
            redirect:'/login'
        },
    ],
})




export default router;
